package com.tjtt.gwm.service.impl;

import java.math.BigDecimal;
import java.util.List;

import com.tjtt.gwm.bean.EquipmentOutIndex;
import com.tjtt.tdm.flow.bean.FlowTask;
import com.tjtt.gwm.bean.Formrelateequ;
import com.tjtt.gwm.bean.Outstoreform;
import com.tjtt.gwm.dao.EquipmentOutDao;
import com.tjtt.gwm.service.EquipmentOutService;
import com.tjtt.gwm.bean.EquipmentOutIndex;
import com.tjtt.tdm.flow.bean.FlowTaskInfo;
public class EquipmentOutServiceImpl implements EquipmentOutService {
	private EquipmentOutDao equipmentOutDao;
	
	
	public EquipmentOutDao getEquipmentOutDao() {
		return equipmentOutDao;
	}
	public void setEquipmentOutDao(EquipmentOutDao equipmentOutDao) {
		this.equipmentOutDao = equipmentOutDao;
	}

	public void saveToForm(Object object){
		equipmentOutDao.saveToForm(object);
	}
	
	 public  Outstoreform  queryOutstoreFormById(String id){
		 return  equipmentOutDao.queryOutstoreFormById(id);
	 }
	 
	 public List <EquipmentOutIndex> queryEquoutIndxByDate(String nowdate){
		 return equipmentOutDao.queryEquoutIndxByDate(nowdate);
	 }
	 
	 public void updateEquipmentOutIndex(EquipmentOutIndex equipmentOutIndex){
		 equipmentOutDao.updateEquipmentOutIndex(equipmentOutIndex);
	 }
	 public void UpdateOutstoreForm(Outstoreform osf){
		 equipmentOutDao.UpdateOutstoreForm(osf);
	 }
	 
	 public void saveToEquoutIndx(EquipmentOutIndex eoi){
		 equipmentOutDao.saveToEquoutIndx(eoi);
	 }
	 
	 
//	 public FlowTask getFlowtaskId(String string){
//		 return equipmentOutDao.getFlowtaskById(string);		 
//	 }
	  
	 public List<Formrelateequ> queryFormRelateequbyId(String mainid,String equid){
		 return equipmentOutDao.queryFormRelateequbyId(mainid,equid);
	 }
	@Override
	public void updateFormRelateequ(Formrelateequ formrelateequ) {
		equipmentOutDao.updateFormRelateequ(formrelateequ);
		// TODO Auto-generated method stub
		
	}
	@Override
	public List<FlowTask> getFlowtaskById(String string) {
		return equipmentOutDao.getFlowtaskById(string);
	}
	
	public List<FlowTaskInfo> getFlowTaskInfoById(Long id){
		return equipmentOutDao.getFlowTaskInfoById(id);
	}
	public void updateFlowTaskInfo(FlowTaskInfo fti){
		equipmentOutDao.updateFlowTaskInfo(fti);
	}
	
}
